package com.lancoo.ccas53.pojo.dto;

import com.lancoo.ccas53.entity.SubClassGroup;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.LinkedList;

/**
 * @ClassName SplitSubClass
 * @Description TODO
 * @Author quin
 * @Date 2024/6/6 9:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = {"courseTeacherIds"})
public class SplitSubClass {

    private String courseTeacherIds;

    /**
     * 奇数教学班
     */
    private LinkedList<SubClassGroup> oddClassList;

    /**
     * 偶数教学班
     */
    private LinkedList<SubClassGroup> evenClassList;

    //获取教学班列表的元素数量，两个列表的元素数之和
    public Integer getSize() {
        return oddClassList.size() + evenClassList.size();
    }


}
